/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

/**
 *
 * @author minaev
 */
public class StartMain {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        if (args.length > 0) {
            if (args[0].equals("-st1")) {
                java.awt.EventQueue.invokeLater(new Runnable() {
                    public void run() {
                        new ControlFrrame().setVisible(true);
                    }
                });
            } else if (args[0].equals("-st2")) {
                java.awt.EventQueue.invokeLater(new Runnable() {
                    @Override
                    public void run() {
                        new ModernEndoscopFrame().setVisible(true);
                    }
                });
            } else if (args[0].equals("-st3")) {
                java.awt.EventQueue.invokeLater(new Runnable() {
                    @Override
                    public void run() {
                        new WardrobeFrame().setVisible(true);
                    }
                });
            } else {
                printHelp();
            }
        }else{
            printHelp();
        }
    }
    
    static void printHelp(){
            System.out.println("Usage:\n"
                    + "java -jar VirtualSurgeonTestStend.jar <OPTION>\n"
                    + "<OPTION>:\n"
                    + "   -st1 - Endovascular surgery\n"
                    + "   -st2 - Endoscope surgery\n"
                    + "   -st3 - Open surgery");
    }
}
